package com.ravi.mapper;

import com.ravi.model.entity.AdminUser;
import com.ravi.model.vo.AdminUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminUserMapper {

	int insertAdmin(AdminUser user);

	List<AdminUserVo> selectAllAdmin();

	AdminUser adminLogin(@Param("username")String username, @Param("password")String password);

	AdminUser selectAdminByUsername(@Param("username") String username);

	int updateAdminPassword(AdminUser user);
}
